package com.superiron.scaffold.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.superiron.scaffold.config.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

/**
 * 用户角色关系表
 * @author yzg
 * @date 2022年6月20日10:16:11
 * 版权所有 泰山信息科技有限公司
 */
@Entity
@Table(name = "sa_user_role", indexes = {@Index(name = "index_user_id", columnList = "user_id")})
@TableName("sa_user_role")
@Data
public class UserRoleEntity extends BaseEntity {
	// 用户ID
	@ApiModelProperty("用户ID")
	@Column(name = "user_id")
    private Long userId;
	// 角色ID
	@ApiModelProperty("角色code")
	@Column(name = "role_code")
	private String roleCode;
}
